# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=astyle
pkgver=3.4.14
pkgrel=0
pkgdesc="Automatic code formatter"
url="https://sourceforge.net/projects/astyle/"
arch="all"
license="MIT"
depends_dev="$pkgname=$pkgver-r$pkgrel"
subpackages="$pkgname-dev $pkgname-libs $pkgname-doc"
source="https://gitlab.com/saalen/astyle/-/archive/$pkgver/astyle-$pkgver.tar.bz2
	makefile-install.patch
	"
builddir="$srcdir/astyle-$pkgver/AStyle/build/gcc"

build() {
	make shared release
}

check() {
	./bin/astyle --version
}

package() {
	DESTDIR="$pkgdir" make INSTALL=install install
}

sha512sums="
1e43d54889c86783720a8839ee3e949a5c9f3268ec6d281974d9037f8299d40e3be729925c71dcbe415eca70549ee8ef647a0a300c91b86634cd8db8f7c9f2ec  astyle-3.4.14.tar.bz2
92c184e6a4061a02c520b0593b74a67f3e1805c877d5799c6cdc8f1abb70b0f05a78bbbe9c6e2157a01afeee3ac2febb63a0d777e89a01d1478e206c7afb22c0  makefile-install.patch
"
